package com.passive.lock.model.po;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class TLockExample {
    /**
     * T_Lock
     */
    protected String orderByClause;

    /**
     * T_Lock
     */
    protected boolean distinct;

    /**
     * T_Lock
     */
    protected List<Criteria> oredCriteria;

    /**
     *
     * @mbggenerated 2017-07-26
     */
    public TLockExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    /**
     *
     * @mbggenerated 2017-07-26
     */
    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    /**
     *
     * @mbggenerated 2017-07-26
     */
    public String getOrderByClause() {
        return orderByClause;
    }

    /**
     *
     * @mbggenerated 2017-07-26
     */
    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    /**
     *
     * @mbggenerated 2017-07-26
     */
    public boolean isDistinct() {
        return distinct;
    }

    /**
     *
     * @mbggenerated 2017-07-26
     */
    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    /**
     *
     * @mbggenerated 2017-07-26
     */
    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    /**
     *
     * @mbggenerated 2017-07-26
     */
    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    /**
     *
     * @mbggenerated 2017-07-26
     */
    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    /**
     *
     * @mbggenerated 2017-07-26
     */
    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    /**
     *
     * @mbggenerated 2017-07-26
     */
    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    /**
     * T_Lock 2017-07-26
     */
    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andLockidIsNull() {
            addCriterion("lockId is null");
            return (Criteria) this;
        }

        public Criteria andLockidIsNotNull() {
            addCriterion("lockId is not null");
            return (Criteria) this;
        }

        public Criteria andLockidEqualTo(Integer value) {
            addCriterion("lockId =", value, "lockid");
            return (Criteria) this;
        }

        public Criteria andLockidNotEqualTo(Integer value) {
            addCriterion("lockId <>", value, "lockid");
            return (Criteria) this;
        }

        public Criteria andLockidGreaterThan(Integer value) {
            addCriterion("lockId >", value, "lockid");
            return (Criteria) this;
        }

        public Criteria andLockidGreaterThanOrEqualTo(Integer value) {
            addCriterion("lockId >=", value, "lockid");
            return (Criteria) this;
        }

        public Criteria andLockidLessThan(Integer value) {
            addCriterion("lockId <", value, "lockid");
            return (Criteria) this;
        }

        public Criteria andLockidLessThanOrEqualTo(Integer value) {
            addCriterion("lockId <=", value, "lockid");
            return (Criteria) this;
        }

        public Criteria andLockidIn(List<Integer> values) {
            addCriterion("lockId in", values, "lockid");
            return (Criteria) this;
        }

        public Criteria andLockidNotIn(List<Integer> values) {
            addCriterion("lockId not in", values, "lockid");
            return (Criteria) this;
        }

        public Criteria andLockidBetween(Integer value1, Integer value2) {
            addCriterion("lockId between", value1, value2, "lockid");
            return (Criteria) this;
        }

        public Criteria andLockidNotBetween(Integer value1, Integer value2) {
            addCriterion("lockId not between", value1, value2, "lockid");
            return (Criteria) this;
        }

        public Criteria andLocknameIsNull() {
            addCriterion("lockName is null");
            return (Criteria) this;
        }

        public Criteria andLocknameIsNotNull() {
            addCriterion("lockName is not null");
            return (Criteria) this;
        }

        public Criteria andLocknameEqualTo(String value) {
            addCriterion("lockName =", value, "lockname");
            return (Criteria) this;
        }

        public Criteria andLocknameNotEqualTo(String value) {
            addCriterion("lockName <>", value, "lockname");
            return (Criteria) this;
        }

        public Criteria andLocknameGreaterThan(String value) {
            addCriterion("lockName >", value, "lockname");
            return (Criteria) this;
        }

        public Criteria andLocknameGreaterThanOrEqualTo(String value) {
            addCriterion("lockName >=", value, "lockname");
            return (Criteria) this;
        }

        public Criteria andLocknameLessThan(String value) {
            addCriterion("lockName <", value, "lockname");
            return (Criteria) this;
        }

        public Criteria andLocknameLessThanOrEqualTo(String value) {
            addCriterion("lockName <=", value, "lockname");
            return (Criteria) this;
        }

        public Criteria andLocknameLike(String value) {
            addCriterion("lockName like", value, "lockname");
            return (Criteria) this;
        }

        public Criteria andLocknameNotLike(String value) {
            addCriterion("lockName not like", value, "lockname");
            return (Criteria) this;
        }

        public Criteria andLocknameIn(List<String> values) {
            addCriterion("lockName in", values, "lockname");
            return (Criteria) this;
        }

        public Criteria andLocknameNotIn(List<String> values) {
            addCriterion("lockName not in", values, "lockname");
            return (Criteria) this;
        }

        public Criteria andLocknameBetween(String value1, String value2) {
            addCriterion("lockName between", value1, value2, "lockname");
            return (Criteria) this;
        }

        public Criteria andLocknameNotBetween(String value1, String value2) {
            addCriterion("lockName not between", value1, value2, "lockname");
            return (Criteria) this;
        }

        public Criteria andLockcodeIsNull() {
            addCriterion("lockCode is null");
            return (Criteria) this;
        }

        public Criteria andLockcodeIsNotNull() {
            addCriterion("lockCode is not null");
            return (Criteria) this;
        }

        public Criteria andLockcodeEqualTo(String value) {
            addCriterion("lockCode =", value, "lockcode");
            return (Criteria) this;
        }

        public Criteria andLockcodeNotEqualTo(String value) {
            addCriterion("lockCode <>", value, "lockcode");
            return (Criteria) this;
        }

        public Criteria andLockcodeGreaterThan(String value) {
            addCriterion("lockCode >", value, "lockcode");
            return (Criteria) this;
        }

        public Criteria andLockcodeGreaterThanOrEqualTo(String value) {
            addCriterion("lockCode >=", value, "lockcode");
            return (Criteria) this;
        }

        public Criteria andLockcodeLessThan(String value) {
            addCriterion("lockCode <", value, "lockcode");
            return (Criteria) this;
        }

        public Criteria andLockcodeLessThanOrEqualTo(String value) {
            addCriterion("lockCode <=", value, "lockcode");
            return (Criteria) this;
        }

        public Criteria andLockcodeLike(String value) {
            addCriterion("lockCode like", value, "lockcode");
            return (Criteria) this;
        }

        public Criteria andLockcodeNotLike(String value) {
            addCriterion("lockCode not like", value, "lockcode");
            return (Criteria) this;
        }

        public Criteria andLockcodeIn(List<String> values) {
            addCriterion("lockCode in", values, "lockcode");
            return (Criteria) this;
        }

        public Criteria andLockcodeNotIn(List<String> values) {
            addCriterion("lockCode not in", values, "lockcode");
            return (Criteria) this;
        }

        public Criteria andLockcodeBetween(String value1, String value2) {
            addCriterion("lockCode between", value1, value2, "lockcode");
            return (Criteria) this;
        }

        public Criteria andLockcodeNotBetween(String value1, String value2) {
            addCriterion("lockCode not between", value1, value2, "lockcode");
            return (Criteria) this;
        }

        public Criteria andLockstateIsNull() {
            addCriterion("lockState is null");
            return (Criteria) this;
        }

        public Criteria andLockstateIsNotNull() {
            addCriterion("lockState is not null");
            return (Criteria) this;
        }

        public Criteria andLockstateEqualTo(String value) {
            addCriterion("lockState =", value, "lockstate");
            return (Criteria) this;
        }

        public Criteria andLockstateNotEqualTo(String value) {
            addCriterion("lockState <>", value, "lockstate");
            return (Criteria) this;
        }

        public Criteria andLockstateGreaterThan(String value) {
            addCriterion("lockState >", value, "lockstate");
            return (Criteria) this;
        }

        public Criteria andLockstateGreaterThanOrEqualTo(String value) {
            addCriterion("lockState >=", value, "lockstate");
            return (Criteria) this;
        }

        public Criteria andLockstateLessThan(String value) {
            addCriterion("lockState <", value, "lockstate");
            return (Criteria) this;
        }

        public Criteria andLockstateLessThanOrEqualTo(String value) {
            addCriterion("lockState <=", value, "lockstate");
            return (Criteria) this;
        }

        public Criteria andLockstateLike(String value) {
            addCriterion("lockState like", value, "lockstate");
            return (Criteria) this;
        }

        public Criteria andLockstateNotLike(String value) {
            addCriterion("lockState not like", value, "lockstate");
            return (Criteria) this;
        }

        public Criteria andLockstateIn(List<String> values) {
            addCriterion("lockState in", values, "lockstate");
            return (Criteria) this;
        }

        public Criteria andLockstateNotIn(List<String> values) {
            addCriterion("lockState not in", values, "lockstate");
            return (Criteria) this;
        }

        public Criteria andLockstateBetween(String value1, String value2) {
            addCriterion("lockState between", value1, value2, "lockstate");
            return (Criteria) this;
        }

        public Criteria andLockstateNotBetween(String value1, String value2) {
            addCriterion("lockState not between", value1, value2, "lockstate");
            return (Criteria) this;
        }

        public Criteria andLocktypeIsNull() {
            addCriterion("lockType is null");
            return (Criteria) this;
        }

        public Criteria andLocktypeIsNotNull() {
            addCriterion("lockType is not null");
            return (Criteria) this;
        }

        public Criteria andLocktypeEqualTo(String value) {
            addCriterion("lockType =", value, "locktype");
            return (Criteria) this;
        }

        public Criteria andLocktypeNotEqualTo(String value) {
            addCriterion("lockType <>", value, "locktype");
            return (Criteria) this;
        }

        public Criteria andLocktypeGreaterThan(String value) {
            addCriterion("lockType >", value, "locktype");
            return (Criteria) this;
        }

        public Criteria andLocktypeGreaterThanOrEqualTo(String value) {
            addCriterion("lockType >=", value, "locktype");
            return (Criteria) this;
        }

        public Criteria andLocktypeLessThan(String value) {
            addCriterion("lockType <", value, "locktype");
            return (Criteria) this;
        }

        public Criteria andLocktypeLessThanOrEqualTo(String value) {
            addCriterion("lockType <=", value, "locktype");
            return (Criteria) this;
        }

        public Criteria andLocktypeLike(String value) {
            addCriterion("lockType like", value, "locktype");
            return (Criteria) this;
        }

        public Criteria andLocktypeNotLike(String value) {
            addCriterion("lockType not like", value, "locktype");
            return (Criteria) this;
        }

        public Criteria andLocktypeIn(List<String> values) {
            addCriterion("lockType in", values, "locktype");
            return (Criteria) this;
        }

        public Criteria andLocktypeNotIn(List<String> values) {
            addCriterion("lockType not in", values, "locktype");
            return (Criteria) this;
        }

        public Criteria andLocktypeBetween(String value1, String value2) {
            addCriterion("lockType between", value1, value2, "locktype");
            return (Criteria) this;
        }

        public Criteria andLocktypeNotBetween(String value1, String value2) {
            addCriterion("lockType not between", value1, value2, "locktype");
            return (Criteria) this;
        }

        public Criteria andRegionidIsNull() {
            addCriterion("regionId is null");
            return (Criteria) this;
        }

        public Criteria andRegionidIsNotNull() {
            addCriterion("regionId is not null");
            return (Criteria) this;
        }

        public Criteria andRegionidEqualTo(Integer value) {
            addCriterion("regionId =", value, "regionid");
            return (Criteria) this;
        }

        public Criteria andRegionidNotEqualTo(Integer value) {
            addCriterion("regionId <>", value, "regionid");
            return (Criteria) this;
        }

        public Criteria andRegionidGreaterThan(Integer value) {
            addCriterion("regionId >", value, "regionid");
            return (Criteria) this;
        }

        public Criteria andRegionidGreaterThanOrEqualTo(Integer value) {
            addCriterion("regionId >=", value, "regionid");
            return (Criteria) this;
        }

        public Criteria andRegionidLessThan(Integer value) {
            addCriterion("regionId <", value, "regionid");
            return (Criteria) this;
        }

        public Criteria andRegionidLessThanOrEqualTo(Integer value) {
            addCriterion("regionId <=", value, "regionid");
            return (Criteria) this;
        }

        public Criteria andRegionidIn(List<Integer> values) {
            addCriterion("regionId in", values, "regionid");
            return (Criteria) this;
        }

        public Criteria andRegionidNotIn(List<Integer> values) {
            addCriterion("regionId not in", values, "regionid");
            return (Criteria) this;
        }

        public Criteria andRegionidBetween(Integer value1, Integer value2) {
            addCriterion("regionId between", value1, value2, "regionid");
            return (Criteria) this;
        }

        public Criteria andRegionidNotBetween(Integer value1, Integer value2) {
            addCriterion("regionId not between", value1, value2, "regionid");
            return (Criteria) this;
        }

        public Criteria andRouteidIsNull() {
            addCriterion("routeId is null");
            return (Criteria) this;
        }

        public Criteria andRouteidIsNotNull() {
            addCriterion("routeId is not null");
            return (Criteria) this;
        }

        public Criteria andRouteidEqualTo(Integer value) {
            addCriterion("routeId =", value, "routeid");
            return (Criteria) this;
        }

        public Criteria andRouteidNotEqualTo(Integer value) {
            addCriterion("routeId <>", value, "routeid");
            return (Criteria) this;
        }

        public Criteria andRouteidGreaterThan(Integer value) {
            addCriterion("routeId >", value, "routeid");
            return (Criteria) this;
        }

        public Criteria andRouteidGreaterThanOrEqualTo(Integer value) {
            addCriterion("routeId >=", value, "routeid");
            return (Criteria) this;
        }

        public Criteria andRouteidLessThan(Integer value) {
            addCriterion("routeId <", value, "routeid");
            return (Criteria) this;
        }

        public Criteria andRouteidLessThanOrEqualTo(Integer value) {
            addCriterion("routeId <=", value, "routeid");
            return (Criteria) this;
        }

        public Criteria andRouteidIn(List<Integer> values) {
            addCriterion("routeId in", values, "routeid");
            return (Criteria) this;
        }

        public Criteria andRouteidNotIn(List<Integer> values) {
            addCriterion("routeId not in", values, "routeid");
            return (Criteria) this;
        }

        public Criteria andRouteidBetween(Integer value1, Integer value2) {
            addCriterion("routeId between", value1, value2, "routeid");
            return (Criteria) this;
        }

        public Criteria andRouteidNotBetween(Integer value1, Integer value2) {
            addCriterion("routeId not between", value1, value2, "routeid");
            return (Criteria) this;
        }

        public Criteria andLockaddressIsNull() {
            addCriterion("lockAddress is null");
            return (Criteria) this;
        }

        public Criteria andLockaddressIsNotNull() {
            addCriterion("lockAddress is not null");
            return (Criteria) this;
        }

        public Criteria andLockaddressEqualTo(String value) {
            addCriterion("lockAddress =", value, "lockaddress");
            return (Criteria) this;
        }

        public Criteria andLockaddressNotEqualTo(String value) {
            addCriterion("lockAddress <>", value, "lockaddress");
            return (Criteria) this;
        }

        public Criteria andLockaddressGreaterThan(String value) {
            addCriterion("lockAddress >", value, "lockaddress");
            return (Criteria) this;
        }

        public Criteria andLockaddressGreaterThanOrEqualTo(String value) {
            addCriterion("lockAddress >=", value, "lockaddress");
            return (Criteria) this;
        }

        public Criteria andLockaddressLessThan(String value) {
            addCriterion("lockAddress <", value, "lockaddress");
            return (Criteria) this;
        }

        public Criteria andLockaddressLessThanOrEqualTo(String value) {
            addCriterion("lockAddress <=", value, "lockaddress");
            return (Criteria) this;
        }

        public Criteria andLockaddressLike(String value) {
            addCriterion("lockAddress like", value, "lockaddress");
            return (Criteria) this;
        }

        public Criteria andLockaddressNotLike(String value) {
            addCriterion("lockAddress not like", value, "lockaddress");
            return (Criteria) this;
        }

        public Criteria andLockaddressIn(List<String> values) {
            addCriterion("lockAddress in", values, "lockaddress");
            return (Criteria) this;
        }

        public Criteria andLockaddressNotIn(List<String> values) {
            addCriterion("lockAddress not in", values, "lockaddress");
            return (Criteria) this;
        }

        public Criteria andLockaddressBetween(String value1, String value2) {
            addCriterion("lockAddress between", value1, value2, "lockaddress");
            return (Criteria) this;
        }

        public Criteria andLockaddressNotBetween(String value1, String value2) {
            addCriterion("lockAddress not between", value1, value2, "lockaddress");
            return (Criteria) this;
        }

        public Criteria andOpenstateIsNull() {
            addCriterion("openState is null");
            return (Criteria) this;
        }

        public Criteria andOpenstateIsNotNull() {
            addCriterion("openState is not null");
            return (Criteria) this;
        }

        public Criteria andOpenstateEqualTo(String value) {
            addCriterion("openState =", value, "openstate");
            return (Criteria) this;
        }

        public Criteria andOpenstateNotEqualTo(String value) {
            addCriterion("openState <>", value, "openstate");
            return (Criteria) this;
        }

        public Criteria andOpenstateGreaterThan(String value) {
            addCriterion("openState >", value, "openstate");
            return (Criteria) this;
        }

        public Criteria andOpenstateGreaterThanOrEqualTo(String value) {
            addCriterion("openState >=", value, "openstate");
            return (Criteria) this;
        }

        public Criteria andOpenstateLessThan(String value) {
            addCriterion("openState <", value, "openstate");
            return (Criteria) this;
        }

        public Criteria andOpenstateLessThanOrEqualTo(String value) {
            addCriterion("openState <=", value, "openstate");
            return (Criteria) this;
        }

        public Criteria andOpenstateLike(String value) {
            addCriterion("openState like", value, "openstate");
            return (Criteria) this;
        }

        public Criteria andOpenstateNotLike(String value) {
            addCriterion("openState not like", value, "openstate");
            return (Criteria) this;
        }

        public Criteria andOpenstateIn(List<String> values) {
            addCriterion("openState in", values, "openstate");
            return (Criteria) this;
        }

        public Criteria andOpenstateNotIn(List<String> values) {
            addCriterion("openState not in", values, "openstate");
            return (Criteria) this;
        }

        public Criteria andOpenstateBetween(String value1, String value2) {
            addCriterion("openState between", value1, value2, "openstate");
            return (Criteria) this;
        }

        public Criteria andOpenstateNotBetween(String value1, String value2) {
            addCriterion("openState not between", value1, value2, "openstate");
            return (Criteria) this;
        }

        public Criteria andOpentimeIsNull() {
            addCriterion("openTime is null");
            return (Criteria) this;
        }

        public Criteria andOpentimeIsNotNull() {
            addCriterion("openTime is not null");
            return (Criteria) this;
        }

        public Criteria andOpentimeEqualTo(Date value) {
            addCriterion("openTime =", value, "opentime");
            return (Criteria) this;
        }

        public Criteria andOpentimeNotEqualTo(Date value) {
            addCriterion("openTime <>", value, "opentime");
            return (Criteria) this;
        }

        public Criteria andOpentimeGreaterThan(Date value) {
            addCriterion("openTime >", value, "opentime");
            return (Criteria) this;
        }

        public Criteria andOpentimeGreaterThanOrEqualTo(Date value) {
            addCriterion("openTime >=", value, "opentime");
            return (Criteria) this;
        }

        public Criteria andOpentimeLessThan(Date value) {
            addCriterion("openTime <", value, "opentime");
            return (Criteria) this;
        }

        public Criteria andOpentimeLessThanOrEqualTo(Date value) {
            addCriterion("openTime <=", value, "opentime");
            return (Criteria) this;
        }

        public Criteria andOpentimeIn(List<Date> values) {
            addCriterion("openTime in", values, "opentime");
            return (Criteria) this;
        }

        public Criteria andOpentimeNotIn(List<Date> values) {
            addCriterion("openTime not in", values, "opentime");
            return (Criteria) this;
        }

        public Criteria andOpentimeBetween(Date value1, Date value2) {
            addCriterion("openTime between", value1, value2, "opentime");
            return (Criteria) this;
        }

        public Criteria andOpentimeNotBetween(Date value1, Date value2) {
            addCriterion("openTime not between", value1, value2, "opentime");
            return (Criteria) this;
        }

        public Criteria andLatitudeIsNull() {
            addCriterion("latitude is null");
            return (Criteria) this;
        }

        public Criteria andLatitudeIsNotNull() {
            addCriterion("latitude is not null");
            return (Criteria) this;
        }

        public Criteria andLatitudeEqualTo(String value) {
            addCriterion("latitude =", value, "latitude");
            return (Criteria) this;
        }

        public Criteria andLatitudeNotEqualTo(String value) {
            addCriterion("latitude <>", value, "latitude");
            return (Criteria) this;
        }

        public Criteria andLatitudeGreaterThan(String value) {
            addCriterion("latitude >", value, "latitude");
            return (Criteria) this;
        }

        public Criteria andLatitudeGreaterThanOrEqualTo(String value) {
            addCriterion("latitude >=", value, "latitude");
            return (Criteria) this;
        }

        public Criteria andLatitudeLessThan(String value) {
            addCriterion("latitude <", value, "latitude");
            return (Criteria) this;
        }

        public Criteria andLatitudeLessThanOrEqualTo(String value) {
            addCriterion("latitude <=", value, "latitude");
            return (Criteria) this;
        }

        public Criteria andLatitudeLike(String value) {
            addCriterion("latitude like", value, "latitude");
            return (Criteria) this;
        }

        public Criteria andLatitudeNotLike(String value) {
            addCriterion("latitude not like", value, "latitude");
            return (Criteria) this;
        }

        public Criteria andLatitudeIn(List<String> values) {
            addCriterion("latitude in", values, "latitude");
            return (Criteria) this;
        }

        public Criteria andLatitudeNotIn(List<String> values) {
            addCriterion("latitude not in", values, "latitude");
            return (Criteria) this;
        }

        public Criteria andLatitudeBetween(String value1, String value2) {
            addCriterion("latitude between", value1, value2, "latitude");
            return (Criteria) this;
        }

        public Criteria andLatitudeNotBetween(String value1, String value2) {
            addCriterion("latitude not between", value1, value2, "latitude");
            return (Criteria) this;
        }

        public Criteria andLongitudeIsNull() {
            addCriterion("longitude is null");
            return (Criteria) this;
        }

        public Criteria andLongitudeIsNotNull() {
            addCriterion("longitude is not null");
            return (Criteria) this;
        }

        public Criteria andLongitudeEqualTo(String value) {
            addCriterion("longitude =", value, "longitude");
            return (Criteria) this;
        }

        public Criteria andLongitudeNotEqualTo(String value) {
            addCriterion("longitude <>", value, "longitude");
            return (Criteria) this;
        }

        public Criteria andLongitudeGreaterThan(String value) {
            addCriterion("longitude >", value, "longitude");
            return (Criteria) this;
        }

        public Criteria andLongitudeGreaterThanOrEqualTo(String value) {
            addCriterion("longitude >=", value, "longitude");
            return (Criteria) this;
        }

        public Criteria andLongitudeLessThan(String value) {
            addCriterion("longitude <", value, "longitude");
            return (Criteria) this;
        }

        public Criteria andLongitudeLessThanOrEqualTo(String value) {
            addCriterion("longitude <=", value, "longitude");
            return (Criteria) this;
        }

        public Criteria andLongitudeLike(String value) {
            addCriterion("longitude like", value, "longitude");
            return (Criteria) this;
        }

        public Criteria andLongitudeNotLike(String value) {
            addCriterion("longitude not like", value, "longitude");
            return (Criteria) this;
        }

        public Criteria andLongitudeIn(List<String> values) {
            addCriterion("longitude in", values, "longitude");
            return (Criteria) this;
        }

        public Criteria andLongitudeNotIn(List<String> values) {
            addCriterion("longitude not in", values, "longitude");
            return (Criteria) this;
        }

        public Criteria andLongitudeBetween(String value1, String value2) {
            addCriterion("longitude between", value1, value2, "longitude");
            return (Criteria) this;
        }

        public Criteria andLongitudeNotBetween(String value1, String value2) {
            addCriterion("longitude not between", value1, value2, "longitude");
            return (Criteria) this;
        }

        public Criteria andGroupidsIsNull() {
            addCriterion("groupids is null");
            return (Criteria) this;
        }

        public Criteria andGroupidsIsNotNull() {
            addCriterion("groupids is not null");
            return (Criteria) this;
        }

        public Criteria andGroupidsEqualTo(String value) {
            addCriterion("groupids =", value, "groupids");
            return (Criteria) this;
        }

        public Criteria andGroupidsNotEqualTo(String value) {
            addCriterion("groupids <>", value, "groupids");
            return (Criteria) this;
        }

        public Criteria andGroupidsGreaterThan(String value) {
            addCriterion("groupids >", value, "groupids");
            return (Criteria) this;
        }

        public Criteria andGroupidsGreaterThanOrEqualTo(String value) {
            addCriterion("groupids >=", value, "groupids");
            return (Criteria) this;
        }

        public Criteria andGroupidsLessThan(String value) {
            addCriterion("groupids <", value, "groupids");
            return (Criteria) this;
        }

        public Criteria andGroupidsLessThanOrEqualTo(String value) {
            addCriterion("groupids <=", value, "groupids");
            return (Criteria) this;
        }

        public Criteria andGroupidsLike(String value) {
            addCriterion("groupids like", value, "groupids");
            return (Criteria) this;
        }

        public Criteria andGroupidsNotLike(String value) {
            addCriterion("groupids not like", value, "groupids");
            return (Criteria) this;
        }

        public Criteria andGroupidsIn(List<String> values) {
            addCriterion("groupids in", values, "groupids");
            return (Criteria) this;
        }

        public Criteria andGroupidsNotIn(List<String> values) {
            addCriterion("groupids not in", values, "groupids");
            return (Criteria) this;
        }

        public Criteria andGroupidsBetween(String value1, String value2) {
            addCriterion("groupids between", value1, value2, "groupids");
            return (Criteria) this;
        }

        public Criteria andGroupidsNotBetween(String value1, String value2) {
            addCriterion("groupids not between", value1, value2, "groupids");
            return (Criteria) this;
        }

        public Criteria andGroupidIsNull() {
            addCriterion("groupid is null");
            return (Criteria) this;
        }

        public Criteria andGroupidIsNotNull() {
            addCriterion("groupid is not null");
            return (Criteria) this;
        }

        public Criteria andGroupidEqualTo(String value) {
            addCriterion("groupid =", value, "groupid");
            return (Criteria) this;
        }

        public Criteria andGroupidNotEqualTo(String value) {
            addCriterion("groupid <>", value, "groupid");
            return (Criteria) this;
        }

        public Criteria andGroupidGreaterThan(String value) {
            addCriterion("groupid >", value, "groupid");
            return (Criteria) this;
        }

        public Criteria andGroupidGreaterThanOrEqualTo(String value) {
            addCriterion("groupid >=", value, "groupid");
            return (Criteria) this;
        }

        public Criteria andGroupidLessThan(String value) {
            addCriterion("groupid <", value, "groupid");
            return (Criteria) this;
        }

        public Criteria andGroupidLessThanOrEqualTo(String value) {
            addCriterion("groupid <=", value, "groupid");
            return (Criteria) this;
        }

        public Criteria andGroupidLike(String value) {
            addCriterion("groupid like", value, "groupid");
            return (Criteria) this;
        }

        public Criteria andGroupidNotLike(String value) {
            addCriterion("groupid not like", value, "groupid");
            return (Criteria) this;
        }

        public Criteria andGroupidIn(List<String> values) {
            addCriterion("groupid in", values, "groupid");
            return (Criteria) this;
        }

        public Criteria andGroupidNotIn(List<String> values) {
            addCriterion("groupid not in", values, "groupid");
            return (Criteria) this;
        }

        public Criteria andGroupidBetween(String value1, String value2) {
            addCriterion("groupid between", value1, value2, "groupid");
            return (Criteria) this;
        }

        public Criteria andGroupidNotBetween(String value1, String value2) {
            addCriterion("groupid not between", value1, value2, "groupid");
            return (Criteria) this;
        }

        public Criteria andLocknoteIsNull() {
            addCriterion("lockNote is null");
            return (Criteria) this;
        }

        public Criteria andLocknoteIsNotNull() {
            addCriterion("lockNote is not null");
            return (Criteria) this;
        }

        public Criteria andLocknoteEqualTo(String value) {
            addCriterion("lockNote =", value, "locknote");
            return (Criteria) this;
        }

        public Criteria andLocknoteNotEqualTo(String value) {
            addCriterion("lockNote <>", value, "locknote");
            return (Criteria) this;
        }

        public Criteria andLocknoteGreaterThan(String value) {
            addCriterion("lockNote >", value, "locknote");
            return (Criteria) this;
        }

        public Criteria andLocknoteGreaterThanOrEqualTo(String value) {
            addCriterion("lockNote >=", value, "locknote");
            return (Criteria) this;
        }

        public Criteria andLocknoteLessThan(String value) {
            addCriterion("lockNote <", value, "locknote");
            return (Criteria) this;
        }

        public Criteria andLocknoteLessThanOrEqualTo(String value) {
            addCriterion("lockNote <=", value, "locknote");
            return (Criteria) this;
        }

        public Criteria andLocknoteLike(String value) {
            addCriterion("lockNote like", value, "locknote");
            return (Criteria) this;
        }

        public Criteria andLocknoteNotLike(String value) {
            addCriterion("lockNote not like", value, "locknote");
            return (Criteria) this;
        }

        public Criteria andLocknoteIn(List<String> values) {
            addCriterion("lockNote in", values, "locknote");
            return (Criteria) this;
        }

        public Criteria andLocknoteNotIn(List<String> values) {
            addCriterion("lockNote not in", values, "locknote");
            return (Criteria) this;
        }

        public Criteria andLocknoteBetween(String value1, String value2) {
            addCriterion("lockNote between", value1, value2, "locknote");
            return (Criteria) this;
        }

        public Criteria andLocknoteNotBetween(String value1, String value2) {
            addCriterion("lockNote not between", value1, value2, "locknote");
            return (Criteria) this;
        }

        public Criteria andLockimageIsNull() {
            addCriterion("lockImage is null");
            return (Criteria) this;
        }

        public Criteria andLockimageIsNotNull() {
            addCriterion("lockImage is not null");
            return (Criteria) this;
        }

        public Criteria andLockimageEqualTo(String value) {
            addCriterion("lockImage =", value, "lockimage");
            return (Criteria) this;
        }

        public Criteria andLockimageNotEqualTo(String value) {
            addCriterion("lockImage <>", value, "lockimage");
            return (Criteria) this;
        }

        public Criteria andLockimageGreaterThan(String value) {
            addCriterion("lockImage >", value, "lockimage");
            return (Criteria) this;
        }

        public Criteria andLockimageGreaterThanOrEqualTo(String value) {
            addCriterion("lockImage >=", value, "lockimage");
            return (Criteria) this;
        }

        public Criteria andLockimageLessThan(String value) {
            addCriterion("lockImage <", value, "lockimage");
            return (Criteria) this;
        }

        public Criteria andLockimageLessThanOrEqualTo(String value) {
            addCriterion("lockImage <=", value, "lockimage");
            return (Criteria) this;
        }

        public Criteria andLockimageLike(String value) {
            addCriterion("lockImage like", value, "lockimage");
            return (Criteria) this;
        }

        public Criteria andLockimageNotLike(String value) {
            addCriterion("lockImage not like", value, "lockimage");
            return (Criteria) this;
        }

        public Criteria andLockimageIn(List<String> values) {
            addCriterion("lockImage in", values, "lockimage");
            return (Criteria) this;
        }

        public Criteria andLockimageNotIn(List<String> values) {
            addCriterion("lockImage not in", values, "lockimage");
            return (Criteria) this;
        }

        public Criteria andLockimageBetween(String value1, String value2) {
            addCriterion("lockImage between", value1, value2, "lockimage");
            return (Criteria) this;
        }

        public Criteria andLockimageNotBetween(String value1, String value2) {
            addCriterion("lockImage not between", value1, value2, "lockimage");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNull() {
            addCriterion("createTime is null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNotNull() {
            addCriterion("createTime is not null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeEqualTo(Date value) {
            addCriterion("createTime =", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotEqualTo(Date value) {
            addCriterion("createTime <>", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThan(Date value) {
            addCriterion("createTime >", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("createTime >=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThan(Date value) {
            addCriterion("createTime <", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThanOrEqualTo(Date value) {
            addCriterion("createTime <=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIn(List<Date> values) {
            addCriterion("createTime in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotIn(List<Date> values) {
            addCriterion("createTime not in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeBetween(Date value1, Date value2) {
            addCriterion("createTime between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotBetween(Date value1, Date value2) {
            addCriterion("createTime not between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIsNull() {
            addCriterion("updateTime is null");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIsNotNull() {
            addCriterion("updateTime is not null");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeEqualTo(Date value) {
            addCriterion("updateTime =", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotEqualTo(Date value) {
            addCriterion("updateTime <>", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeGreaterThan(Date value) {
            addCriterion("updateTime >", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("updateTime >=", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeLessThan(Date value) {
            addCriterion("updateTime <", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeLessThanOrEqualTo(Date value) {
            addCriterion("updateTime <=", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIn(List<Date> values) {
            addCriterion("updateTime in", values, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotIn(List<Date> values) {
            addCriterion("updateTime not in", values, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeBetween(Date value1, Date value2) {
            addCriterion("updateTime between", value1, value2, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotBetween(Date value1, Date value2) {
            addCriterion("updateTime not between", value1, value2, "updatetime");
            return (Criteria) this;
        }
    }

    /**
     * T_Lock
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    /**
     * T_Lock 2017-07-26
     */
    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}